package org.scohen.juploadr.uploadapi.zooomr.authentication;

import org.scohen.juploadr.uploadapi.zooomr.DefaultZooomrHandler;
import org.xml.sax.SAXException;

public class GetFrobHandler extends DefaultZooomrHandler {
    private GetFrob parent;

    public GetFrobHandler(Object parent) {
        super(parent);
        this.parent = (GetFrob) parent;
    }

    public void characters(char[] chars, int start, int end)
            throws SAXException {
        String cdata = new String(chars, start, end).trim();

        if (cdata.length() > 0) {
            if ("frob".equals(lastTag)) {
                parent.setFrob(cdata);
            }
        }
    }

}
